/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.database.engine.ddl.model.index;

import com.snail.server.database.engine.ddl.index.enums.IndexFieldOrderByEnum;
import com.snail.server.database.engine.ddl.index.enums.IndexTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 *
 * @author zgadmin
 * @date 2025/9/8 10:03
 *
 */
@Data
@ToString
public class IndexMo {

    private String name;

    private IndexTypeEnum type;

    private List<IndexField> indexFields;

    private String description;

    @Data
    @ToString
    public static class IndexField{

        private String fieldName;

        private IndexFieldOrderByEnum orderBy;

    }

}